package com.ys.gulimall.service;

import com.ys.gulimall.vo.CartItemVo;
import com.ys.gulimall.vo.CartVo;

import java.util.List;
import java.util.concurrent.ExecutionException;

/**
 * @Description:
 * @author： yeswater
 * @create： 2024/5/17
 */

public interface CartService {
	CartItemVo addToCart(Long skuId, Integer num) throws ExecutionException, InterruptedException;
	
	CartItemVo getCartItem(Long skuId);
	
	CartVo getCart() throws ExecutionException, InterruptedException;
	
	void clearCart(String cartKey);
	
	void checkItem(Long skuId, Integer check);
	
	void changeItemCount(Long skuId, Integer num);
	
	void deleteIdCartInfo(Integer skuId);
	
	List<CartItemVo> getUserCartItems();
}
